#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#if 0
int main()
{

	float a = 5.5f;
	//5.5   ->  101.1
	//(-1)^0*1.011*2^2
	//S=0      E+127=2+127=129                 M=011
	// 0          10000010          01100000000000000000000
	return 0;
}
#endif

int main()
{
	int n = 9;
	float* pfloat = (float*)&n;
	printf("%d\n", n);
	printf("%f\n", *pfloat);
	//    9-> 0      00000000        00000000000000000001001
	//    s=0      E=1-127=-126           M=0.000000
	//*pfloat=0.000000

	*pfloat = 9.0;
	printf("%d\n", n);
	printf("%f\n", *pfloat);
	return 0;
	//9.0->    (-1)^0*1.001*2^3
	//    S=0,     E+127=130,          M=001
	//     0       10000010      00100000000000000000000
	//01000001000100000000000000000000
	//
}